package com.xxzx.publicprevention.controller;

import com.xxzx.publicprevention.pojo.TbYfqfilerelation;
import com.xxzx.publicprevention.service.TbYfqfilerelationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 地质灾害文件关系表 (TbYfqfilerelation)表控制层
 *
 * @author makejava
 * @since 2020-11-18 09:54:05
 */
@RestController
@RequestMapping("/tbYfqfilerelation")
public class TbYfqfilerelationController {
    /**
     * 服务对象
     */
    @Resource
    private TbYfqfilerelationService tbYfqfilerelationService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("/selectOne")
    public TbYfqfilerelation selectOne(Integer id) {
        return this.tbYfqfilerelationService.queryById(id);
    }

}